<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

<ui:component>
	<div class="title">
		<h1><h:outputText value="#{messages['title.accomodation_pop_dest']}" /></h1>
		<h:outputText value="#{messages['subtitle.accomodation_pop_dest']}" />
	</div>				
	<rich:panel id="accomodation">
		<h:panelGrid styleClass="popular" columns="4" columnClasses="top,top,top,top" width="97%">
			<rich:dataDefinitionList value="#{topMjestaByHoteli}" var="m">
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/objekti.seam">
					<f:param name="idMjesta" value="#{m.idMjesta}"/>
					<f:param name="idTipaObjekta" value="4"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(m,4)}"/>
					<h:outputText value="#{m.naziv} #{messages['label.hotels']}" />
				</h:outputLink>
			</rich:dataDefinitionList>
			<rich:dataDefinitionList value="#{topMjestaByKampovi}" var="m">
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/objekti.seam">
					<f:param name="idMjesta" value="#{m.idMjesta}"/>
					<f:param name="idTipaObjekta" value="1"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(m,1)}"/>
					<h:outputText value="#{m.naziv} #{messages['label.camps']}" />
				</h:outputLink>
			</rich:dataDefinitionList>
			<rich:dataDefinitionList value="#{topMjestaByApartmani}" var="m">
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/objekti.seam">
					<f:param name="idMjesta" value="#{m.idMjesta}"/>
					<f:param name="idTipaObjekta" value="3"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(m,3)}"/>
					<h:outputText value="#{m.naziv} #{messages['label.apartments']}" />
				</h:outputLink>
			</rich:dataDefinitionList>
			<rich:dataDefinitionList value="#{topMjestaByKuce}" var="m">
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/objekti.seam">
					<f:param name="idMjesta" value="#{m.idMjesta}"/>
					<f:param name="idTipaObjekta" value="6"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(m,6)}"/>
					<h:outputText value="#{m.naziv} #{messages['label.houses']}" />
				</h:outputLink>
			</rich:dataDefinitionList>					
		</h:panelGrid>
	</rich:panel> 
</ui:component>

</html>